package com.pwt.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.pwt.entity.base.BaseEntity;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import lombok.EqualsAndHashCode;
import lombok.Data;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;


/**
 * CpConfig
 *
 * @author auto generated
 * @date 2021-11-02 11:12:23
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "[cp_config]")
@Schema(name = "CpConfig")
@DynamicInsert
@DynamicUpdate
public class CpConfig extends BaseEntity {

	/**
	 * 重要级别 0-次重要的，1-略重要的，2-重要的，3-很重要的，关键的
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "importanceRank",description = "重要级别 0-次重要的，1-略重要的，2-重要的，3-很重要的，关键的")
	@Column(name = "importance_rank", nullable = true)
	@NotNull(message = "重要级别不能为空")
	private Integer importanceRank;

	/**
	 * cp目标
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "cp",description = "cp目标")
	@Column(name = "cp", nullable = true)
	private Double cp;

	/**
	 * cpk目标
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "cpk",description = "cpk目标")
	@Column(name = "cpk", nullable = true)
	private Double cpk;

	/**
	 * 状态(1:开启,0:关闭)
	 * nullable : true
	 * default  : 0
	 */
	@Schema(name = "status",description = "状态(1:开启,0:关闭)")
	@Column(name = "status", nullable = true)
	private Integer status;

	/**
	 * deleted
	 * nullable : false
	 * default  : 0
	 */
	@Schema(name = "deleted",description = "deleted")
	@Column(name = "deleted", nullable = true)
	private Integer deleted;
}
